#!/usr/bin/env python3
# -*- coding: utf-8 -*-

b = bytes.fromhex

s_name =  "NGEE 15BD0H~15C3CH	007 Goldeneye (USA)"
sample = b("""27BDFFE0 AFBF0014 AFA40020 0C005798 AFA0001C 8FA40020 0C00557F 27A50018
              AFA2001C 8FAE001C 15C00008 00000000 97AF0018 31F88000 13000004 00000000
              24190001 10000002 AFB9001C AFA0001C 0C0057A9 00000000 8FBF0014 8FA2001C
              27BD0020 03E00008 00000000""")

s_mask = b("""FFFFFFFF FFFFFFFF FFFFFFFF 00000000 FFFFFFFF FFFFFFFF 00000000 FFFFFFFF
              FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
              FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF 00000000 FFFFFFFF FFFFFFFF FFFFFFFF
              FFFFFFFF FFFFFFFF FFFFFFFF""")

symbol = (('+', 'V0 = detected EEPROM type using queue A0', 0x6FFFF400),
          ('l', 'wait for SI lock queue, creating if necessary', 0xC, 0x70000000),
          ('l', 'clear SI lock queue', 0x50, 0x70000000),
          )

# 0x48 of 0x6C; rewritten to return 2 if 16k found.  GE predates this, existing code only uses truth test.
p_data = b("""27BDFFE0 AFBF001C 00000000 AFA40020 8FA40020 00000000 27A50010 54400004
              00001025 93A30010 00030982 2422FFFF 00000000 AFA20018 8FA20018 8FBF001C
              03E00008 27BD0020""")

p_cmds = ((0x8, 0xC, 4),
          (0x14, 0x18, 4),
          (0x30, 0x50, 4),
          )
